<div class="record-item" *ngIf="auditItem">
    <div class="info-wrapper">
        <div class="item">
            <span>
                <ng-container *ngIf="auditItem.submitName;else auditNameTpl">
                    提交人：
                    {{auditItem?.submitName}}
                </ng-container>
                <ng-template #auditNameTpl>
                    {{auditItem?.auditName}}
                </ng-template>
            </span>
        </div>
        <div class="item">
            <span>
                <ng-container *ngIf="auditItem.createTime">
                    提交时间：{{auditItem.createTime | date: 'yyyy-MM-dd HH:mm'}}
                </ng-container>
                <ng-container *ngIf="auditItem.conclusion == 'wait'">
                    待审核
                </ng-container>
            </span>
        </div>
    </div>
    <div class="dot item"
        [ngClass]="{'dot-pass': auditItem.conclusion == 'pass', 'dot-return':auditItem.conclusion == 'return'}">
    </div>
    <div class="result-wrapper">
        <div class="item">
            <ng-container *ngIf="auditItem.name;else resulNameTpl">
                <div>
                    <span>{{auditItem.name}}</span>
                </div>
            </ng-container>
            <ng-template #resulNameTpl>提交</ng-template>
        </div>
        <div class="item" *ngIf="auditItem.conclusion == 'pass' && auditItem.nodeType != 'submit'">
            <span class="item-name">审核结论：</span>
            <span class="item-data">
                <ng-container *ngIf="auditItem.conclusion === 'pass'">通过</ng-container>
                <ng-container *ngIf="auditItem.conclusion === 'return'">退回</ng-container>
            </span>
        </div>
        <div class="item" *ngIf="auditItem.conclusion != 'wait' && auditItem.nodeType != 'submit'">
            <span class="item-name">审核意见：</span>
            <span class="item-data" nz-tooltip
                [nzTooltipTitle]="auditItem.opinion === 'no' ? '' : auditItem.opinionValue">
                <ng-container *ngIf="auditItem.opinion === 'no'">无意见</ng-container>
                <ng-container *ngIf="auditItem.opinion === 'attachment'">
                    {{auditItem.opinionValue}}
                </ng-container>
                <ng-container *ngIf="auditItem.opinion === 'text'">
                    {{auditItem.opinionValue}}
                </ng-container>
            </span>
        </div>
    </div>
</div>